<?php

class Core_Form_Admin_Storage_Rackspace extends Form
{
	function init()
	{
		// admin manage fields
		$this -> addChild('yesno', 'is_active', array(
			'label' => 'Active',
			'required' => true,
			'value' => 1
		));
		
		$this -> addChild('yesno', 'is_default', array(
			'label' => 'Active',
			'required' => true,
			'value' => 1
		));
		
		$this -> addChild('yesno', 'is_locked', array(
			'label' => 'Locked',
			'required' => true,
			'value' => 1
		));
		// other fields for rackspace connect
		
		$this -> addChild('text', 'username', array(
			'label' => 'Rackspace Username',
			'required' => true,
			'rules' => array('required'),
			'desc' => 'Enter your Rackspace username.'
		));

		$this -> addChild('text', 'key', array(
			'label' => 'Rackspace API Key',
			'required' => true,
			'rules' => array('required'),
			'desc' => 'Enter your Rackspace API key.'
		));

		$this -> addChild('text', 'container', array(
			'label' => 'Rackspace Container',
			'required' => true,
			'rules' => array('required'),
			'desc' => 'Enter your Rackspace container'
		));

		$this -> addChild('group', '_buttons');
		$this -> _buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
